{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row">
                <!--搜索框开始-->
                <div class="col-sm-12">
                    <div class="layui-form layui-form-item">

                    </div>
                </div>
                <!--操作框结束-->
            </div>
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="layui-hide" id="test" lay-filter="demo"></table>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}

<script>
    //layui渲染数据表格
    layui.use('table', function () {
        var table = layui.table
                , form = layui.form;
        table.render({
            elem: '#test'
            , url: '{:url("Consumer/order")}'
            ,response: {
                statusCode: 220 //成功的状态码，默认：0
            }
            , page: true
            , size: 'lg' //sm小尺寸的表格 lg大尺寸
            , cellMinWidth: 150
            , limits: [5, 10, 15, 20, 25, 30]
            , limit: "{:config('pages')}"
            , loading: true
            , where: {id:{:session('user_id1')}}
        , id: 'testReload'
                , cols: [[
            {type:'numbers', width: 80, title: '序号'}
            , {field: 'order_number', width: 180, title: '订单号', align: 'center'}
            , {field: 'order_time', width: 200, title: '下单时间', align: 'center'}
            , {field: 'order_status_name', width: 200, title: '订单状态', align: 'center'}
            , {field: 'order_type_name', width: 100, title: '支付方式', align: 'center'}
            , {field: 'coupon_name', width: 100, title: '优惠卷', align: 'center'}
            , {field: 'order_all_price', width: 100, title: '订单金额', align: 'center'}
            , {field: 'order_user_pay', width: 150, title: '用户实付金额', align: 'center'}
            , {field: 'order_glod', width: 100, title: '金币数量', align: 'center'}
            , {field: 'good_name', width: 200, title: '商品名称', align: 'center'}
            , {field: 'order_num', width: 100, title: '商品数量', align: 'center'}
            , {field: 'order_freight_money', width: 100, title: '运费', align: 'center'}
            , {field: 'order_name', width: 200, title: '收货人', align: 'center'}
            , {field: 'order_address', width: 200, title: '收货地址', align: 'center'}
            , {field: 'order_phone', width: 150, title: '收货人手机号码', align: 'center'}
        ]]
    });

    });
</script>
</body>
</html>